package com.helei.springcloud.controller;

import com.helei.springcloud.service.PaymentService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Scanner;

@RestController
public class PaymentController {
    @Resource
    PaymentService paymentService;

    @GetMapping("aa")
    public String aa(Integer id){
        System.out.println("1111111111");
        return paymentService.paymentInfo_ok(id);
    }

    @GetMapping("bb")
    public String bb(Integer id){
        return paymentService.paymentInfo_TimeOut(id);
    }

}
